
package nccloud.impl.arap.txdj.uap.pf;

import nc.bs.pub.pf.CheckStatusCallbackContext;
import nc.bs.pub.pf.ICheckStatusCallback;
import nc.impl.pubapp.pattern.data.vo.VOUpdate;
import nc.vo.arap.amortization.AggAmortizationVO;
import nc.vo.arap.amortization.AmortizationVO;
import nc.vo.pub.BusinessException;

public class WriteTXDJStateForFlow implements ICheckStatusCallback {

        public void callCheckStatus(CheckStatusCallbackContext cscc) throws BusinessException {
                AggAmortizationVO bill = (AggAmortizationVO) cscc.getBillVo();
                nc.vo.arap.amortization.AmortizationVO header = bill.getParentVO();
                String[] names = new String[]{"approvestatus", "approver", "approvedate"};
                VOUpdate<nc.vo.arap.amortization.AmortizationVO> bo = new VOUpdate();
                bo.update(new nc.vo.arap.amortization.AmortizationVO[]{header}, names);
        }

}
